import App from './App'
// 引入 uView UI
import uView from './uni_modules/vk-uview-ui';
import utils from '@/utils/utils.js'
import share from '@/utils/share.js'


// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.mixin(share)
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import * as Pinia from 'pinia'
import {
	createUnistorage
} from './uni_modules/pinia-plugin-unistorage'
export function createApp() {
	const app = createSSRApp(App)
	const store = Pinia.createPinia()
	store.use(createUnistorage())
	app.use(store)
	app.use(uView)
	app.mixin(share)
	return {
		app,
		Pinia
	}
}
// #endif